a37374
@@ -568,6 +568,7 @@
protected void closeOp(boolean abort) throws HiveException {
     }
     super.closeOp(abort);
     out = null;
+    random = null;
     if (isLogInfoEnabled) {
       LOG.info(toString() + ": records written - " + numRows);
     }
